ImageGear Professional v18.2 > User Guide > Using ImageGear > Optical Character Recognition > Using Auto-Redact > Regular Expressions > Basic Patterns (Literals) |
For basic regular expressions, the pattern is matched to the exact recognition results. For example, to find the exact string "123", the regular expression pattern is "123".
If the masking pattern includes special characters, then each of these characters require escaping.
To escape the special characters, precede them with a backslash ("\", U+005C) character. For example, to define the string "$123", the pattern is "\$123".
In C and C++, the backslash ("\", U+005C) implies an escape character, so you have to type "\\.123". In other words, to use a backslash in the search pattern, simply escape it with a backslash. For example, to specify the string "\123", the necessary pattern is "\\123".
The period "." matches any single character.